﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace OpenSource.Controls
{
    public class InputFormRowField:TableRow
    {
        private int rowIndex;
        private InputFormRow baseRow;
        private int dataSourceIndex;

        public InputFormRowField(int rowIndex, InputFormRow baseRow)
        {
            // TODO: Complete member initialization
            this.rowIndex = rowIndex;
            this.baseRow = baseRow;
        }

        public InputFormRowField(int rowIndex, int dataSourceIndex)
        {
            // TODO: Complete member initialization
            this.rowIndex = rowIndex;
            this.dataSourceIndex = dataSourceIndex;
        }
        public object DataItem { get; set; }

        public InputFormRowType RowType { get; set; }

        public InputFormRow ContainingRow
        {
            get { return this.baseRow; }
        }
    }
}
